import { request } from '@/utils/request';

export interface LoginProps {
  username: string;
  password: string;
}

export interface RegisterProps {
  username: string;
  password: string;
  confirmPassword: string;
}

export const login = async (params: LoginProps) => await request('POST', '/login', params);

export const register = async (params: RegisterProps) => await request('POST', '/register', params);
